#include<iostream>
#include<cstdio>
using namespace std;
int main()
{
	int t;
	cin >> t;
	int a, b;
	while (t--) {
		scanf("%d+%d", &a, &b);
		cout << a + b << endl;
	}
	return 0;
}